import Layout from '@/layout'

const subjectRouter = {
  path: '/subject',
  component: Layout,
  redirect: '/subject/tree',
  name: 'Subject',
  meta: {
    title: '科目管理',
    icon: 'box'
  },
  children: [
    {
      path: 'tree',
      component: () => import('@/views/subject/tree'),
      name: 'SubjectNested',
      meta: { title: '科目分类', icon: 'stackshare', noCache: false }
    },
    {
      path: 'import',
      component: () => import('@/views/subject/import'),
      name: 'SubjectImport',
      meta: { title: '导入科目', icon: 'excel', noCache: false }
    }
  ]
}

export default subjectRouter

